macos: remove workaround for scroll delta
authorChristian Hergert <chergert@redhat.com>
Sat, 10 Oct 2020 03:02:38 +0000 (20:02 -0700)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 14 Oct 2020 19:06:12 +0000 (15:06 -0400)
This gets handled differently in gtk/ and so we shouldn't translate it here.

gdk/macos/gdkmacosdisplay-translate.c

index 8a47cfc4a0ecc5bdc09e90b1a2ea8e1183d69a2e..329f20b0dddff094724b8ac9d476c29930102dd3 100644 (file)
@@ -604,15 +604,8 @@ fill_scroll_event (GdkMacosDisplay *self,
       double sx;
       double sy;
 
-      /*
-       * TODO: We probably need another event type for the
-       *       high precision scroll events since sx and dy
-       *       are in a unit we don't quite support. For now,
-       *       to slow it down multiply by .1.
-       */
-
-      sx = [nsevent scrollingDeltaX] * .1;
-      sy = [nsevent scrollingDeltaY] * .1;
+      sx = [nsevent scrollingDeltaX];
+      sy = [nsevent scrollingDeltaY];
 
       if (sx != 0.0 || dx != 0.0)
         ret = gdk_scroll_event_new (GDK_SURFACE (surface),